package mianxiangduixiang.Week8.Exam5;

import mianxiangduixiang.Week8.Exam1.Point;
import mianxiangduixiang.Week8.Exam4.Circle;
import mianxiangduixiang.Week8.Exam4.Rectangle;
import mianxiangduixiang.Week8.Exam4.Shape;

/**
 * @Author JetZhang
 * @Date 2021/11/2
 */
public class TestV3 {
    public static void main(String[] args) {
        Shape shape = new Rectangle(new Point(5, 5), 4, 5);
        Shape shape1 = new Circle(new Point(5, 5), 3);
        System.out.println("长方形周长" + shape.getC());
        System.out.println("圆形周长" + shape1.getC());
        System.out.println("长方形面积" + shape.getArea());
        System.out.println("圆形面积" + shape1.getArea());
    }
}
